# Marcelo Barros de Almeida
# 20080226

# ---------------  MACROS -------------------------------
# Directories 
SRCDIR = ./src
BINDIR  = .
PROGRAM = kmsimul
INCLUDE =

# set up compiler and options
CXX = g++
CXXFLAGS = -O3  -I.
# debug
#CXXFLAGS = -g -O0 -I.

# include files

# source files to compile
SRC = cronometer.cpp  kmeans.cpp  kmeansmain.cpp

# All OBJ files will have the same base name but with
# extension .o
OBJ = $(addsuffix .o, $(basename $(SRC)))

# --------------- TARGETS ---------------------------------

all: kmsimul

kmsimul:	$(OBJ)
	$(CXX) $(CXXFLAGS) -o $(PROGRAM) $(OBJ)

clean:
	rm -f $(OBJ) $(BINDIR)/core

clean_all: clean
	rm -f $(PROGRAM)

